package com.milhouz.bomberrokon.model;

public class BomberData {

	/** Flam force of a bomb */
	private int mFlamForce;
	/** Nb of bombs that a bomber can drop */
	private int mNbMaxBombs;
	/** Nb of dropped bombs by the bomber */
	private int mNbDroppedBombs;
	/** Bomber speed in pixel/sec */
	private int mSpeed;

	private final int SPEED_INCREMENT = 10;

	public BomberData() {
		mFlamForce = 1;
		mNbMaxBombs = 1;
		mNbDroppedBombs = 0;
		mSpeed = 90;
	}

	public int getFlamForce() {
		return mFlamForce;
	}

	public void incrementFlamForce() {
		mFlamForce++;
	}

	public int getNbMaxBombs() {
		return mNbMaxBombs;
	}

	public void incrementNbMaxBombs() {
		mNbMaxBombs++;
	}

	public int getSpeed() {
		return mSpeed;
	}

	public void incrementSpeed() {
		mSpeed += SPEED_INCREMENT;
	}

	public int getNbDroppedBombs() {
		return mNbDroppedBombs;
	}

	public void incrementNbDroppedBombs() {
		mNbDroppedBombs++;
	}

	public void decrementNbDroppedBombs() {
		mNbDroppedBombs--;
	}

	public boolean canDropBomb() {
		return (mNbDroppedBombs < mNbMaxBombs);
	}
}
